package com.nifostasky.comic.entitys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@ApiModel(value="字典小类")
@Data
@TableName(value = "sys_dict")
public class SysDict extends SysBaseEntity implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="主键id")
    private Long id;

    /**
     * 大类字典ID
     */
    @TableField(value = "domain_id")
    @ApiModelProperty(value="大类字典ID")
    private Long domainId;

    @TableField(value = "domain_code")
    @ApiModelProperty(value="大类字典Code")
    private String domainCode;

    /**
     * 父id
     */
    @TableField(value = "parent_id")
    @ApiModelProperty(value="父id")
    private Integer parentId;

    /**
     * 字典名称
     */
    @TableField(value = "dict_name")
    @ApiModelProperty(value="字典名称")
    private String dictName;

    /**
     * 字典值(同大类或者父级唯一)
     */
    @TableField(value = "dict_value")
    @ApiModelProperty(value="字典值(同大类或者父级唯一)")
    private String dictValue;

    /**
     * 字典code(英文名称描述,全局不能重复)
     */
    @TableField(value = "dict_code")
    @ApiModelProperty(value="字典code(英文名称描述,全局不能重复)")
    private String dictCode;

    /**
     * 名称拼音全拼
     */
    @TableField(value = "full_pinyin")
    @ApiModelProperty(value="名称拼音全拼")
    private String fullPinyin;

    /**
     * 名称拼音简拼
     */
    @TableField(value = "simple_pinyin")
    @ApiModelProperty(value="名称拼音简拼")
    private String simplePinyin;

    /**
     * 排序
     */
    @TableField(value = "sort")
    @ApiModelProperty(value="排序")
    private Integer sort;

    /**
     * 描述使用范围
     */
    @TableField(value = "description")
    @ApiModelProperty(value="描述使用范围")
    private String description;

}